View Issue Details

IDProjectCategoryView StatusLast Update
0001374K18X001.00 SKB SWANSWpublic2021-11-08 13:29
Reporter(ALTech) Sangmin Choi Assigned To(SW) Jim Chen Due Date2021-10-25 18:00
PriorityurgentSeveritys2-severeReproducibilityalways
Status closedResolutionfixed 
Summary0001374: There is no audio or duplicated audio when I connect SWAN from TV as BT Speaker.
DescriptionThe customer want to connect SWAN as BT Speaker from their Smart TV.
And, they want to hear the TV's audio through the SWAN's speaker.

We tested internally using Samsung and LG smart TV.
But, there are following issues.

For Samsung TV,
The STB's audio and TV's audio are played simultaneously.

For LG TV,
I can only hear the STB's audio and TV's audio is not played.

Could you please check this issue with priority?

If you want to know how to connect SWAN as BT Speaker, please refer to the attached document.
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List (SW) Brent Choi

Activities

(ALTech) Sangmin Choi

2021-10-21 14:16

developer  

Connect_as_BT_speaker.pdf (4,703,833 bytes)

(ALTech) Sangmin Choi

2021-10-21 14:17

developer   ~0008528

Last edited: 2021-10-21 14:18

FYI, when I connected the BT Speaker(JBL flip 4) from Smart TV, it works well.

(SW) Brent Choi

2021-10-21 16:37

no access   ~0008535

Last edited: 2021-10-21 16:58

Additional Note : From the call with Wooshin,
1. The Samsung and LG TV that can connect TV can be used for reproducing
2. FW: BMT 18(End User), Daily Build 10/21(ALT internal test)
3. STB Audio at the moment: Youtube can be used for the test
4. HDMI is connected between TV and STB

(SW) Jim Chen

2021-10-21 20:21

developer   ~0008539

Hi Mr Choi,

we got a LG TV which can reproduce the "Samsung TV" phenomenon.

the COD of the smartTV is 0x043C (AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER)
it should be an "SINK" device

what I can do now is something like, in the function to check peer-mode
if (btclass=0x043C && btname=LG webOS TV)
  return peer-is-source

apk v124_test3 treat 0x043C as source-device
test was ok but definitely a bad solution
(I'm not sure what's the COD of your 2 smart TVs, if you test with the apk, please get the log for me)

A2dpDeviceService rely on peer-device-mode very much
I've no idea currently and will keep find out a better way (but can't guarantee)
please also share to me if you have some idea

(ALTech) Wooshin Kang

2021-10-22 09:11

developer   ~0008544

Last edited: 2021-10-22 09:11

we will

(ALTech) Sangmin Choi

2021-10-22 09:44

developer  

LG_EIR.png (54,268 bytes)   
LG_EIR.png (54,268 bytes)   
Samsung_EIR.png (75,932 bytes)   
Samsung_EIR.png (75,932 bytes)   

(ALTech) Sangmin Choi

2021-10-22 09:56

developer   ~0008545

Hi, Jim,

FYI, above screen is the COD of Samsung and LG TV.

I can't connect the LG TV after install test APK.
I attached the LG TV message and logcat file.

Could you please check it?

(ALTech) Sangmin Choi

2021-10-22 09:57

developer  

connect_LGTV_a2dp_test3.log (3,019,951 bytes)
connect_LGTV.png (3,256,886 bytes)

(SW) Jim Chen

2021-10-22 12:42

developer   ~0008550

Last edited: 2021-10-22 12:44

Hi Mr. Choi,
From the log it looks like swan still think the TV is a sink-device.

apk v124_test4 change the way to detect the peer-mode from android framework BluetoothClass snippset.
it checks the RENDER service to be sink-device and the CAPTURE service to be src-device
please check if you can connect TV with this apk.

moreover, test with our LG TV (OLED55B7T),
once it is connected, we receive ACTION_PLAYING_STATE_CHANGED to STATE_PLAYING
there's no STATE_PLAYING/STATE_NOT_PLAYING when you pause/play (test with youtube-on-TV)
in this state, there's no audio output from youtube-on-swan

the STATE_NOT_PLAYING is received after
1. disconnect manually with TV-UI
2. poweroff the TV
3. hit the swan BTN
after this, youtube-on-swan can output audio

(ALTech) Sangmin Choi

2021-10-22 13:31

developer   ~0008554

Last edited: 2021-10-22 13:31

Hi, Jim,

I tested with test4.apk and I could connect the LG TV with SWAN.
But, I couldn't connect the Samsung TV.
Could you please check it?

And, there is too many noise when I play Youtube on LG TV, did you hear any noise when you test it?

connect_LGTV_a2dp_test4.log (4,703,148 bytes)

(ALTech) Sangmin Choi

2021-10-22 16:02

developer   ~0008565

Hi, Jim,

Please check the logcat and video about connecting with Samsung TV.

Thank you.
IMG_1319.MOV (67,339,606 bytes)   

(SW) Jim Chen

2021-10-22 17:50

developer  

WeChat截圖_20211022174325.png (27,346 bytes)   
WeChat截圖_20211022174325.png (27,346 bytes)   

(SW) Jim Chen

2021-10-22 18:03

developer   ~0008569

sorry I attach the file in the wrong place,
please ignore it

(SW) Jim Chen

2021-10-26 00:52

developer   ~0008582

Hi Mr. Choi,

for Samsung TV
no solution yet but some information update:
1. after few tries the TV never connect to SWAN, unplug and plug the power cable then it is ok.
2. the 2.4g bt/wifi coexistence seems not good, the audio quality is bad until I change to eth (and reboot)
3. update the FW from 1371 to 1385 but net tried yet.
4. Samsung-TV has the same behavior as LG-TV: always in playing after connected.

(ALTech) Sangmin Choi

2021-10-27 14:33

developer   ~0008600

Hi, Jim,

Thank you for information.

And, followings are test result on our side.
- QN55Q80RAFXKR / Samsung / FW 1385
- Reset the network setting and connect the wired network
But, I couldn't connect the Samsung TV and SWAN. I tested several times after power off/on.

(ALTech) Sangmin Choi

2021-10-27 17:42

developer   ~0008607

Hi, Jim,

I tested with Yamaha YAS-109 which is a sound bar.
The audio is playing without lag or jitter and also there is no sync issue.
Samsung and LG TV have no issue with YAS-109.

I think we should improve our device.

(ALTech) Sangmin Choi

2021-10-29 08:55

developer   ~0008625

Hello, Jim,

Do you have the Synaptics reference B/D? If yes, could you please test with ref B/D?

(ALTech) Wooshin Kang

2021-11-02 08:57

developer   ~0008642

Hi jim,

Are you working for it ?
Please inform us if there is any update..?

FYI, I got a report from SKB, Complaints is increasing form customer for it. SKB wants it to be fixed soon.

(SW) Jim Chen

2021-11-02 20:30

developer   ~0008652

Hi Mr.
I'm still working on it.
A bug was found and fixed to improve the pairing.
Please check if 125_test1.apk could pair the TV better.

Now we're checking the noise issue.

(ALTech) Sangmin Choi

2021-11-03 09:55

developer   ~0008653

Hi, Jim,

I tested with A2dpDeviceService_125_test1.apk but I still can't connect with Samsung TV.
Could you please check the attached logcat?

Thank you.
125_test1_apk.log (3,074,917 bytes)

(SW) Jim Chen

2021-11-04 18:39

developer   ~0008668

Hi Mr Sangmin,

from the log it is still ERR_AUTH_FAILURE, which should be fixed in 125_test1.apk
please help to get more informations

1. set all debug level to 5 in /system/etc/bluetooth/bt_stack.conf
2. setprop persist.bluetooth.btsnooplogmode full
3. reboot and pair
4. after fair fail, share me the logcat and /data/misc/bluedroid/btsnoop_hci.cfa

(ALTech) Sangmin Choi

2021-11-05 09:21

developer   ~0008672

Hi, Jim,

Please check the attached files.
Followings are the status of STB.

BFX-UA300:/ # getprop persist.bluetooth.btsnooplogmode
full
BFX-UA300:/ # cat /system/etc/bluetooth/bt_stack.conf | grep TRC_
# Must be present before any TRC_ trace level settings
# BT_TRACE_LEVEL_VERBOSE 6 ( Verbose messages ) - Currently supported for TRC_BTAPP only.
TRC_BTM=5
TRC_HCI=5
TRC_L2CAP=5
TRC_RFCOMM=5
TRC_OBEX=5
TRC_AVCT=5
TRC_AVDT=5
TRC_AVRC=5
TRC_AVDT_SCB=5
TRC_AVDT_CCB=5
TRC_A2D=5
TRC_SDP=5
TRC_SMP=5
TRC_BTAPP=5
TRC_BTIF=5
TRC_BNEP=5
TRC_PAN=5
TRC_HID_HOST=5
TRC_HID_DEV=5

Thank you.
samsung_bt_pair_fail.log (8,718,673 bytes)
btsnoop_hci.cfa (17,137 bytes)

(SW) Jim Chen

2021-11-08 10:33

developer   ~0008682

Hi Mr. Sangmin,

from hcilog, we still can't locate the root cause
the fail is "Simple Pairing Complete" timeout,
before the fail, both side should accept the DHKey.
this need air log to know which side didn't accept.
do you have the equipment to catch the air log?

besieds, I need one more information,
could you please check the pair to Samsung-TV after unpair the RCU?

(ALTech) Sangmin Choi

2021-11-08 13:29

developer   ~0008684

Hi, Jim,

I tested with other SWAN device and it works(pairing and play audio) well without A2dpDeviceService_125_test1.apk.
I think the device I tested before has some problem on bluetooth.

I'm sorry I didn't expect about it.

This issue can be closed now.

Thank you for your help.

Issue History

Date Modified Username Field Change
2021-10-21 14:16 (ALTech) Sangmin Choi New Issue
2021-10-21 14:16 (ALTech) Sangmin Choi Status new => assigned
2021-10-21 14:16 (ALTech) Sangmin Choi Assigned To => (SW) Jacky Chiang
2021-10-21 14:16 (ALTech) Sangmin Choi File Added: Connect_as_BT_speaker.pdf
2021-10-21 14:17 (ALTech) Sangmin Choi Note Added: 0008528
2021-10-21 14:18 (ALTech) Sangmin Choi Note Edited: 0008528
2021-10-21 16:10 (SW) Jacky Chiang Assigned To (SW) Jacky Chiang => (SW) River Wong
2021-10-21 16:10 (SW) Jacky Chiang Assigned To (SW) River Wong => (SW) Jim Chen
2021-10-21 16:37 (SW) Brent Choi Note Added: 0008535
2021-10-21 16:58 (SW) Brent Choi Note Edited: 0008535
2021-10-21 18:15 (SW) Jacky Chiang Issue Monitored: (SW) Brent Choi
2021-10-21 20:21 (SW) Jim Chen File Added: A2dpDeviceService_124_test3.apk
2021-10-21 20:21 (SW) Jim Chen Note Added: 0008539
2021-10-22 09:11 (ALTech) Wooshin Kang Note Added: 0008544
2021-10-22 09:11 (ALTech) Wooshin Kang Note Edited: 0008544
2021-10-22 09:44 (ALTech) Sangmin Choi File Added: LG_EIR.png
2021-10-22 09:44 (ALTech) Sangmin Choi File Added: Samsung_EIR.png
2021-10-22 09:56 (ALTech) Sangmin Choi Note Added: 0008545
2021-10-22 09:57 (ALTech) Sangmin Choi File Added: connect_LGTV_a2dp_test3.log
2021-10-22 09:57 (ALTech) Sangmin Choi File Added: connect_LGTV.png
2021-10-22 12:42 (SW) Jim Chen File Added: A2dpDeviceService_124_test4.apk
2021-10-22 12:42 (SW) Jim Chen Note Added: 0008550
2021-10-22 12:44 (SW) Jim Chen Note Edited: 0008550
2021-10-22 13:31 (ALTech) Sangmin Choi File Added: connect_LGTV_a2dp_test4.log
2021-10-22 13:31 (ALTech) Sangmin Choi Note Added: 0008554
2021-10-22 13:31 (ALTech) Sangmin Choi Note Edited: 0008554
2021-10-22 16:02 (ALTech) Sangmin Choi File Added: connect_SamsungTV_A2dp_test4.log
2021-10-22 16:02 (ALTech) Sangmin Choi File Added: IMG_1319.MOV
2021-10-22 16:02 (ALTech) Sangmin Choi Note Added: 0008565
2021-10-22 17:50 (SW) Jim Chen File Added: WeChat截圖_20211022174325.png
2021-10-22 18:03 (SW) Jim Chen Note Added: 0008569
2021-10-26 00:52 (SW) Jim Chen Note Added: 0008582
2021-10-27 14:33 (ALTech) Sangmin Choi Note Added: 0008600
2021-10-27 17:42 (ALTech) Sangmin Choi Note Added: 0008607
2021-10-29 08:55 (ALTech) Sangmin Choi Note Added: 0008625
2021-11-02 08:57 (ALTech) Wooshin Kang Note Added: 0008642
2021-11-02 20:30 (SW) Jim Chen File Added: A2dpDeviceService_125_test1.apk
2021-11-02 20:30 (SW) Jim Chen Note Added: 0008652
2021-11-03 09:55 (ALTech) Sangmin Choi File Added: 125_test1_apk.log
2021-11-03 09:55 (ALTech) Sangmin Choi Note Added: 0008653
2021-11-04 18:39 (SW) Jim Chen Note Added: 0008668
2021-11-05 09:21 (ALTech) Sangmin Choi File Added: samsung_bt_pair_fail.log
2021-11-05 09:21 (ALTech) Sangmin Choi File Added: btsnoop_hci.cfa
2021-11-05 09:21 (ALTech) Sangmin Choi Note Added: 0008672
2021-11-08 10:33 (SW) Jim Chen Note Added: 0008682
2021-11-08 13:29 (ALTech) Sangmin Choi Note Added: 0008684
2021-11-08 13:29 (ALTech) Sangmin Choi Status assigned => closed
2021-11-08 13:29 (ALTech) Sangmin Choi Resolution open => fixed